export interface ISocket
{
    /**连接**/
    connect(host:string, port:number):void;
    /**连接**/
    connectByUrl(url:string):void;

    addCallBacks(onConnect:Function, onClose:Function, onSocketData:Function, onError:Function, thisObject:any):void;

    send(message:any):void;

    close():void;

    disconnect():void;
}
export let ISocket:{new():ISocket};
